import SwiftUI

struct testView: View {
    var body: some View {
        VStack{
            Text("test");
            Spacer()
        }
//        .onAppear(perform: {
//            print("1")
//            NetworkAPI.getInfo(){ result in
//                switch result{
//                case let .success(CourseTest):
//                    print(CourseTest)
//                case let .failure(Error):
//                    print(Error.localizedDescription)
//                }
//            }
//        })
    }
}



struct testView_Previews: PreviewProvider {
  static var previews: some View {
        testView()
            .environmentObject(OrientationInfo())
  }
}
